.class-body {
  display: grid;
  // 两列，列间距 20px，行间距 20px
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.class-item {
  display: flex;
  align-items: center;
  height: 140px;
  border-radius: 24px;
  border: 1px solid #E9EBEE;
  padding: 16px 20px;
  box-sizing: border-box;

  &:active {
    background-color: #eee;
  }

  &__image {
    height: 120px;
    width: 120px;
  }

  &__name {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 36px;
  }
}
